﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PaymentEditControl.ascx.cs"
	Inherits="BK.WebSite.Controls.PaymentEditControl" %>
<link href="../Styles/jquery.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	$().ready(function ()
	{
		WrapTextBox('<%= tbxAccounts.ClientID %>', '<%= hfAcountId.ClientID %>',
			'<%=  Page.ResolveUrl("~/Accounting/Autocomplete/GetAccounts.ashx") %>');

		WrapTextBox('<%= tbxCategory.ClientID %>', '<%= hfCategoryId.ClientID %>',
			'<%=  Page.ResolveUrl("~/Accounting/Autocomplete/GetCategories.ashx") %>');
	})
</script>
<table>
	<tr>
		<td>
			Дата и время
		</td>
		<td>
			<asp:TextBox runat="server" ID="tbxDate" Columns="30"></asp:TextBox>
			<asp:TextBox runat="server" ID="tbxTime"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td>
			Счет
		</td>
		<td>
			<asp:TextBox ID="tbxAccounts" runat="server" autocomplete="off" />
			<asp:TextBox runat="server" ID="hfAcountId" ></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td>
			Категория
		</td>
		<td>
			<asp:TextBox ID="tbxCategory" runat="server" autocomplete="off" />
			<asp:HiddenField runat="server" ID="hfCategoryId" />
		</td>
	</tr>
	<tr>
		<td>
			Сумма
		</td>
		<td>
			<asp:TextBox runat="server" ID="tbxAmount"></asp:TextBox>
		</td>
	</tr>
	<tr>
		<td>
			Описание
		</td>
		<td>
			<asp:TextBox runat="server" ID="tbxDescription" Columns="40" Rows="5" 
				TextMode="MultiLine"></asp:TextBox>
		</td>
	</tr>
</table>

